package com.nidu.demo.mail.dto;

import com.nidu.demo.base.BasePageQry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 邮件日志分页查询
 *
 * @author auto
 */
@Data
@Schema(description = "邮件日志分页查询")
@EqualsAndHashCode(callSuper = true)
public class MailLogPageQry extends BasePageQry {

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "接收邮箱地址", example = "user@example.com")
    private String toMails;

    @Schema(description = "邮箱账号编号", example = "1")
    private Long accountId;

    @Schema(description = "模板编号", example = "1")
    private Long templateId;

    @Schema(description = "模板编码", example = "USER_REGISTER")
    private String templateCode;

    @Schema(description = "发送状态", example = "1")
    private Integer sendStatus;

    @Schema(description = "发送时间范围", example = "[\"2025-01-01 00:00:00\", \"2025-01-31 23:59:59\"]")
    private LocalDateTime[] sendTime;

}
